<?php

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class SportsTest extends Model
{

    protected $table = 'sports_test';
    public $timestamps = true;
    protected $dateFormat = 'U';

    //对应关系
    public function userSport()
    {
        return $this->hasOne('App\Models\User','id','user_id');
    }

}